import axios from "axios";

export const useUsers = defineStore( "users", () => {
	const users = ref( [] );
	const getUsers = async () => {
		const { data } = await axios.get( "https://jsonplaceholder.typicode.com/users" );
		users.value = data;
	}
	return {
		users,
		getUsers
	}
} );